package com.hq.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

//    测试数据库链接类

    @RequestMapping("/hello1")
    public String hello1() {
        return "hello Controller.......";
    }

    @RequestMapping(value = "/hello2",produces = "text/html;charset=UTF-8")
    public String hello2() {
        return "你好，控制器.......";
    }
}
